<?php
/* @var $this AkunOtomasiController */
/* @var $model AkunOtomasi */
/* @var $form CActiveForm */
?>

<div id="steps">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'akun-otomasi-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>
<fieldset class="step">
	<p>
		<?php echo $form->labelEx($model,'NAMA_OTOMASI'); ?>
		<?php echo $form->textField($model,'NAMA_OTOMASI',array('size'=>60,'maxlength'=>250)); ?>
	</p>
		<?php echo $form->error($model,'NAMA_OTOMASI'); ?>
	<p>
		<?php echo $form->label($model,'OTOMASI_DEBET'); ?>
		<?php echo $form->DropDownList($model,'OTOMASI_DEBET',CHtml::listData(MasterAkun::model()->findAll(array('order' => 'NAMA_AKUN ASC')), 'ID_AKUN', 'NAMA_AKUN'),array('prompt'=>'-- Pilih Akun --')); ?>
	</p>
		<?php echo $form->error($model,'OTOMASI_KREDIT'); ?>
	<p>
		<?php echo $form->label($model,'OTOMASI_KREDIT'); ?>
		<?php echo $form->DropDownList($model,'OTOMASI_KREDIT',CHtml::listData(MasterAkun::model()->findAll(array('order' => 'NAMA_AKUN ASC')),'ID_AKUN', 'NAMA_AKUN'),array('prompt'=>'-- Pilih Akun --')); ?>
	</p>
		<?php echo $form->error($model,'OTOMASI_DEBET'); ?>
	<p class="submit">
		<button id="registerButton" type="submit">Simpan</button>&nbsp;
		<button id="registerButton" type="reset">Reset</button>&nbsp;
		<button id="registerButton" type="button" onclick="window.location.href='<?php echo Yii::app()->createUrl("AkunOtomasi");?>'">Kembali</button>
	</p>

<?php $this->endWidget(); ?>

</div><!-- form -->